#!/bin/bash
# cut nginx_logs

logs_path="/var/log/nginx/"

mv ${logs_path}access.log ${logs_path}_$(date -d "yesterday"+"%Y%m%d").log
